package com.guohengspace.mq.model.query;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
@ApiModel
public class ImportImageParam {
//    https://ecs.example.com/?Action=ImportImage
//            &RegionId=cn-qingdao-env17-d01
//&DiskDeviceMapping.1.Format=qcow2
//&DiskDeviceMapping.1.OSSBucket=ecsimageos
//&DiskDeviceMapping.1.OSSObject=CentOS_5.4_32.raw
//&DiskDeviceMapping.1.DiskImageSize=80
//            &ImageName=Test
//&Description=Test
//&Architecture=x86_64
//&OSType=linux
//&Platform=Aliyun
//&LicenseType=Aliyun
//&<公共请求参数>

    @ApiModelProperty(name = "regionId", value = "地域id", dataType = "String",  example = "beijing",required = false)
    private String regionId ;

    @ApiModelProperty(name = "description", value = "描述", dataType = "String",  example = "test-demo",required = false)
    private String description ;
    @ApiModelProperty(name = "architecture", value = "系统架构。取值范围：i386、x86_64（默认）", dataType = "String",  example = "x86_64",required = false)
    private String architecture ;
    @ApiModelProperty(name = "oSType", value = "操作系统平台类型。取值范围：windows、linux（默认）", dataType = "String",  example = "1111",required = false)
    private String oSType ;
    @ApiModelProperty(name = "platform", value = "操作系统发行版。取值范围：CentOS\n" +
            "Ubuntu\n" +
            "SUSE\n" +
            "OpenSUSE\n" +
            "Debian\n" +
            "CoreOS\n" +
            "Aliyun\n" +
            "Windows Server 2003\n" +
            "Windows Server 2008\n" +
            "Windows Server 2012\n" +
            "Others Linux（默认）\n" +
            "Customized Linux", dataType = "String",  example = "linux",required = false)
    private String platform ;
    @ApiModelProperty(name = "licenseType", value = "导入镜像后，激活操作系统采用的许可证\n" +
            "类型。取值范围：\n" +
            "Auto（默认）：由阿里云检测源操作系\n" +
            "统并分配许可证。自动模式下，系统优\n" +
            "先搜索您设置的 Platform 是否有\n" +
            "阿里云官方渠道的许可证并分配给导入\n" +
            "的镜像，如果缺乏该类许可，会切换成\n" +
            "BYOL（Bring Your Own License）方\n" +
            "式。\n" +
            "Aliyun：根据您设置\n" +
            "的 Platform 采用阿里云官方渠道\n" +
            "的许可证。\n" +
            "BYOL：源操作系统自带的许可证。采\n" +
            "用BYOL时，您必须确保您的许可证密\n" +
            "钥支持在阿里云使用", dataType = "String",  example = "Aliyun",required = false)
    private String licenseType ;
    @ApiModelProperty(name = "accessKeyId", value = "组织ak", dataType = "String",  example = "1111",required = true)
    private String accessKeyId;
    @ApiModelProperty(name = "accessKeySecret", value = "组织sk", dataType = "String",  example = "1111",required = true)
    private String accessKeySecret;
}
